package com.ucap.weking.guangan.fragments.liveOnlineFrgmentContent;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.ucap.weking.guangan.R;
import com.ucap.weking.guangan.base.BaseFragment;

import butterknife.ButterKnife;
import butterknife.InjectView;

/**
 * Created by weking on 2017/11/13.
 * 访谈直播简介
 */

public class FragmentContent4 extends BaseFragment {
    @InjectView(R.id.tv_title)
    TextView tvTitle;
    @InjectView(R.id.tv_timer)
    TextView tvTimer;
    @InjectView(R.id.tv_guest)
    TextView tvGuest;
    @InjectView(R.id.tv_explain)
    TextView tvExplain;
    Bundle bundle;

    @Override
    public void setData() {
        tvTitle.setText(bundle.getString("title"));
        tvTimer.setText(bundle.getString("timer"));
        tvGuest.setText(bundle.getString("guest"));
        tvExplain.setText(bundle.getString("explain"));
    }

    @Override
    public void intiView() {
        View view = LayoutInflater.from(getContext()).inflate(R.layout.live_online_fragment_4, null);
        ButterKnife.inject(this, view);
        flContent.addView(view);

    }

    public FragmentContent4 setDataText(Bundle bundle) {
        this.bundle = bundle;
        return this;
    }

}
